package com.log6z.dashborad.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageVO<T> {

    private Integer pageNum;
    private Integer pageSize;
    private List<T> dataList = new ArrayList();
    private long total;

    public PageVO(List<T> dataList, long total){
        this.dataList = dataList;
        this.total = total;
    }

}
